package org.apache.jsp.search;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class searchResult_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/commons/inc.jsp");
    _jspx_dependants.add("/commons/javascripts.jsp");
    _jspx_dependants.add("/commons/showmessage.jsp");
    _jspx_dependants.add("/WEB-INF/connext-graph.tld");
    _jspx_dependants.add("/WEB-INF/webframework-tags.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_0026_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.release();
    _005fjspx_005ftagPool_005fs_005felse.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=utf-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
request.setAttribute("contextPath", request.getContextPath());
      out.write('\r');
      out.write('\n');
request.setAttribute("serverName", request.getServerName());
      out.write('\r');
      out.write('\n');
request.setAttribute("serverPort", request.getServerPort());
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
 request.setAttribute("contextPath", request.getContextPath()); 
      out.write("\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/prototype.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/prototype-extension.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/utils.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/sortTable.js\" ></script> \r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/access.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/scriptaculous.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/window.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/Validator.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/AjaxMethod.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/My97DatePicker/WdatePicker.js\"></script>\r\n");
      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\tGlobal.CONTEXT_PATH = '");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("';\r\n");
      out.write("\tGlobal.LOGIN_PATH=Global.CONTEXT_PATH+\"/account/account.do?method=signUpInput\";\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/style/webframework.css\"/>");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("<link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/style/datechooser.css\" type=\"text/css\" rel=\"stylesheet\"/>\r\n");
      out.write("<link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/style/button.css\" type=\"text/css\" rel=\"stylesheet\"/>\r\n");
      out.write("<link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/style/style2.css\" type=\"text/css\" rel=\"stylesheet\"/> \r\n");
      out.write("<link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/style/style.css\" type=\"text/css\" rel=\"stylesheet\"/>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("body{margin:0;}\r\n");
      out.write("html, body{height:98%;padding:0;}  \r\n");
      out.write("* html, * html body{\r\n");
      out.write("\toverflow:hidden;\r\n");
      out.write("\tpadding:50px 0;\r\n");
      out.write("\tmargin:-50px 0;\r\n");
      out.write("\tpadd\\ing:0;\r\n");
      out.write("\tma\\rgin:0;\r\n");
      out.write("}\r\n");
      out.write("* html #outer { \r\n");
      out.write("\toverflow:auto;\r\n");
      out.write("\theight:99.9%;\r\n");
      out.write("\tvoice-family: \"\\\"}\\\"\"; voice-family:inherit; \r\n");
      out.write("}\r\n");
      out.write("* html #contain-all{\r\n");
      out.write("\tposition:absolute;\r\n");
      out.write("\toverflow:auto;\r\n");
      out.write("\twidth:100%;\r\n");
      out.write("\theight:100%;\r\n");
      out.write("\tz-index:1;\r\n");
      out.write("}\r\n");
      out.write("#footer-inner {\r\n");
      out.write("\theight:60px;\r\n");
      out.write("\tbackground:white;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("* html #footer-inner {margin-right:17px;}\r\n");
      out.write("#container{display: block; min-height: 500px;}\r\n");
      out.write("div.sidebar div span a, div.sidebar div span a:hover{color: #FFFFFF; padding:3px; display: inline; }\r\n");
      out.write("div.sidebar div.collapsed span a{color:#333333;padding:3px; display: inline;}\r\n");
      out.write("div.sidebar div span a.current{padding:3px; display: inline;}\r\n");
      out.write("</style>");
      out.write("\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/select.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/ajax.js\"></script>\r\n");
      out.write("\r\n");
      out.write("<h3 id=\"navTitleId\">检索</h3>\r\n");
      out.write("\r\n");
      out.write("<input id=\"switchSearchBtn\" type=\"button\" value=\"高级检索\" onclick=\"switchSearchMode();\" />\r\n");
      out.write("<input type=\"button\" id=\"addconditionbtn\" value=\"添加条件\" name=\"addCondition\" onclick=\"addCondition();\" style=\"display:none\"/>\r\n");
      out.write("<div id=\"statusBar\"></div>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("   var msgId='");
      if (_jspx_meth_s_005fproperty_005f0(_jspx_page_context))
        return;
      out.write("'; \r\n");
      out.write("   var errMsgs='");
      if (_jspx_meth_s_005fproperty_005f1(_jspx_page_context))
        return;
      out.write("'; \r\n");
      out.write("   showMessage($('statusBar'), errMsgs,msgId);\t    \t     \t   \r\n");
      out.write("</script>");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<form id=\"searchForm\" name=\"searchForm\" method=\"post\"  style=\"display:inline\">\r\n");
      out.write("\t<script>\r\n");
      out.write("\tCreateSelect(\"searchForm\",\"S_1|S_2|S_3\",\"\",\"请选择表格@|请选择字段@|请选择条件@\",AllStr,3);\r\n");
      out.write("\t</script>\r\n");
      out.write("\t 从<input type=\"text\" name=\"fromValue\" id=\"fromValue\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fromValue}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" size=\"6\" /> \r\n");
      out.write("\t 到<input type=\"text\" name=\"toValue\" id=\"toValue\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${toValue}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" size=\"6\" />\r\n");
      out.write("\t<input type=\"button\" value=\"检索患者\" name=\"search\" onclick=\"javscript:searchIndex();\"/>\r\n");
      out.write("</form>\r\n");
      out.write("\r\n");
      out.write("<form id=\"advancedSearchForm\" name=\"advancedSearchForm\" method=\"post\" style=\"display:none\">\r\n");
      out.write("\t<script>\r\n");
      out.write("\t\r\n");
      out.write("\t//CreateSelect(\"advancedSearchForm\",\"S_1_1|S_2_1|S_3_1\",\"\",\"请选择表格@|请选择字段@|请选择条件@\",AllStr,3);\r\n");
      out.write("\tbuildSelect(\"advancedSearchForm\",\"S_1_1|S_2_1|S_3_1\",\"\",\"请选择表格@|请选择字段@|请选择条件@\",AllStr,3);\t\r\n");
      out.write("    </script>\r\n");
      out.write("\t 从<input type=\"text\" name=\"fromValue[0]\" id=\"fromValue1\" size=\"6\" /> \r\n");
      out.write("\t 到<input type=\"text\" name=\"toValue[0]\" id=\"toValue1\" size=\"6\" />\r\n");
      out.write("\t<input type=\"button\" value=\"检索患者\" name=\"search\" onclick=\"javscript:advancedSearchIndex();\"/>\r\n");
      out.write("</form>\r\n");
      out.write("<script>\r\n");
      out.write("var cc=1;\r\n");
      out.write("\r\n");
      out.write("const SelectData = \"\"\r\n");
      out.write("+\"基本信息@patient{{\"\r\n");
      out.write("    +\"费用@feeType((医保@1^标准@2\"\r\n");
      out.write("    +\"**性别@gender((男@0^女@1\"\r\n");
      out.write("    +\"**年龄@age((范围@searchType1\"\r\n");
      out.write("    +\"**工作性质@workType1((军人@1^非军人@0\"\r\n");
      out.write("    \r\n");
      out.write("+\"||个人史@personal{{\"\r\n");
      out.write("    +\"家庭人均月收入@income((<500元@1^500-1000元@2^1000-2000元@3^2000-5000元@4^5000-10000@5^>10000@6^不详@7\"\r\n");
      out.write("    +\"**饮酒@drink((是@1^否@0\"\r\n");
      out.write("    +\"**戒酒@stopdrink((是@1^否@0\"\r\n");
      out.write("    +\"**吸烟@smoke((是@1^否@0\"\r\n");
      out.write("    +\"**戒烟@stopsmoke((是@1^否@0\"\r\n");
      out.write("    +\"**药物过敏史@drugallergy((无@0^有@1^不详@2\"\r\n");
      out.write("    +\"**食物过敏史@foodallergy((无@0^有@1^不详@2\"\r\n");
      out.write("    +\"**周围环境中经常有人吸烟@aroundsmoke((是@0^否@1\"\r\n");
      out.write("    +\"**出生体重@birthweight((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**开始饮酒的年龄@drinkage((范围（岁）@searchType1\"\r\n");
      out.write("    +\"**每日吸烟支数@smokeamount((范围（支）@searchType1\"\r\n");
      out.write("    +\"**吸烟年数@smokelast((范围（年）@searchType1\"\r\n");
      out.write("    +\"**吸烟指数@smokeexpo((范围@searchType1\"\r\n");
      out.write("//    +\"**饮酒种类-白酒((频率（次/周）^数量（两/次）\"\r\n");
      out.write("//    +\"**饮酒种类-黄酒((频率（次/周）^数量（两/次）\"\r\n");
      out.write(" //   +\"**饮酒种类-红酒((频率（次/周）^数量（两/次）\"\r\n");
      out.write(" //   +\"**饮酒种类-啤酒((频率（次/周）^数量（瓶/次）\"\r\n");
      out.write("    \r\n");
      out.write("+\"||生育史@bear{{\"\r\n");
      out.write("    +\"正常分娩@fenmian((是@1^否@0\"\r\n");
      out.write("    +\"**正常分娩值@fmcount((范围（1~10）@searchType1\"\r\n");
      out.write("    +\"**妊娠高血压史@rensheny((无@0^有@1\"\r\n");
      out.write("    +\"**妊娠高血压史值@rsycount((范围（1~5）@searchType1\"\r\n");
      out.write("    +\"**妊娠高血糖史@renshent((无@0^有@1\"\r\n");
      out.write("    +\"**妊娠高血糖史值@rstcount((范围（1~5）@searchType1\"\r\n");
      out.write("    +\"**宫外孕史@gongwai((无@0^有@1\"\r\n");
      out.write("    +\"**宫外孕史值@gwcount((范围（1~5）@searchType1\"\r\n");
      out.write("    +\"**生育巨大胎儿史@taier（出生体重>4.0Kg）((无@0^有@1\"\r\n");
      out.write("    +\"**生育巨大胎儿史值@taiercount（出生体重>4.0Kg）((范围（1~5）@searchType1\"\r\n");
      out.write("    +\"**自然流产史@liuchan((无@0^有@1\"\r\n");
      out.write("    +\"**自然流产史值@lccount((范围（1~5）@searchType1\"    \r\n");
      out.write("\r\n");
      out.write("+\"||体格测试@lab_physical{{\"\r\n");
      out.write("    +\"身高@height((范围（cm）@searchType1\"\r\n");
      out.write("    +\"**体重@weight((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**体质指数（BMI）@bmi((范围@searchType1\"\r\n");
      out.write("    +\"**体型@style((消瘦@1^正常@0^超重@2^肥胖@3\"\r\n");
      out.write("    +\"**腰围@waistline((范围（cm）@searchType1\"\r\n");
      out.write("    +\"**臀围@hip((范围（cm）@searchType1\"\r\n");
      out.write("    +\"**腰臀比（WHR）@whr((范围@searchType1\"\r\n");
      out.write("    +\"**血压-舒张压@pressurea((范围@searchType1\"\r\n");
      out.write("    +\"**血压-收缩压@pressureb((范围@searchType1\"\r\n");
      out.write("    +\"**足背动脉搏动@arterya((正常@0^减弱@1^消失@2\"\r\n");
      out.write("    +\"**胫后动脉搏动@arteryb((正常@0^减弱@1^消失@2\"\r\n");
      out.write("    +\"**细胞内液@xibaonei((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**细胞外液@xibaowai((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**身体总水分@zongshui((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**推定骨量@guliang((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**蛋白质量@danbai((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**肌肉量@jirou((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**去脂肪体重@quzhifang((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**脂肪量@zhifang((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**内脏脂肪含量@neizangzf((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**皮下脂肪含量@pixiazf((范围（kg）@searchType1\"\r\n");
      out.write("    +\"**体脂肪率@tizhifang((范围@searchType1\"\r\n");
      out.write("    +\"**体脂肪率等级@tizhifangs((低于标准@0^标准@1^高于标准@2\"\r\n");
      out.write("    +\"**内脏脂肪等级@neizangs((低于标准@0^标准@1^高于标准@2\"\r\n");
      out.write("    +\"**基础代谢率@jichudaixie((范围（kcal）@searchType1\"\r\n");
      out.write("    +\"**总能量消耗@zongnl((范围（kcal）@searchType1\"\r\n");
      out.write("    +\"**功率@gonglv((范围（瓦）@searchType1\"\r\n");
      out.write("    +\"**心率@xinlv((范围（次/分）@searchType1\"\r\n");
      out.write("    +\"**靶心率@baxinlv((范围（次/分）@searchType1\"\r\n");
      out.write("    +\"**心脏功能能力@xinzang((范围（梅脱）@searchType1\"\r\n");
      out.write("    +\"**运动能力@yundong((范围（梅脱）@searchType1\"\r\n");
      out.write("    +\"**最大摄氧量（相对值）@sheyangxd((范围（ml/kg/min）@searchType1\"\r\n");
      out.write("    +\"**最大摄氧量（绝对值）@sheyangjd((范围（ml/kg/min）@searchType1\"\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("+\"||血糖指标@lab_sugar{{\"\r\n");
      out.write("    +\"葡萄糖检查方式@testmethod((毛细血管血糖（CBG）@1^静脉血清血糖（VSG）@2\"\r\n");
      out.write("    +\"**葡萄糖检查时间@testtime((早餐前@1^中餐前@2^晚餐前@3^早餐后2h@4^中餐后2h@5^晚餐后2h@5^10pm@7^12pm@8^3am@9^随机@10\"\r\n");
      out.write("    +\"**葡萄糖检测值@sugar((范围（mmol/L）@searchType1\"\r\n");
      out.write("    +\"**糖化血红蛋白@xuehong((范围（%）@searchType1\"\r\n");
      out.write("    +\"**糖化血清蛋白@xueqing((范围（mmol/L）@searchType1\"\r\n");
      out.write("    +\"**血酮体@tongti((范围（mg/L）@searchType1\"\r\n");
      out.write("    +\"**乳酸@rusuan((范围（mmol/L）@searchType1\"\r\n");
      out.write("    \r\n");
      out.write("+\"||血脂指标@lab_lipids{{\"\r\n");
      out.write("    +\"胆固醇（TC）@tc((范围（mmol/l）@searchType1\"\r\n");
      out.write("    +\"**甘油三酯(TG)@tg((范围（mmol/l）@searchType1\"\r\n");
      out.write("    +\"**高密度脂蛋白胆固醇(HDL-C)@hdl((范围（mmol/l）@searchType1\"\r\n");
      out.write("    +\"**低密度脂蛋白胆固醇(LDL-C)@ldl((范围（mmol/l）@searchType1\"\r\n");
      out.write("    +\"**脂蛋白a[Lp(a)]@lpa((范围（mg/l）@searchType1\"\r\n");
      out.write("    +\"**载脂蛋白A（ApoAI）@apoai((范围（g/l）@searchType1\"\r\n");
      out.write("    +\"**载脂蛋白B（ApoB）@apob((范围（g/l）@searchType1\"\r\n");
      out.write("    +\"**游离脂肪酸（FFA）@ffa((范围（mmol/l）@searchType1\"\r\n");
      out.write("    \r\n");
      out.write("+\"||胰岛功能-OGTT@lab_pancreat_ogtt{{\"\r\n");
      out.write("    +\"血糖（空腹）@xtempty((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**血糖（30min）@xthalf((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**血糖（60min）@xtone((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**血糖（120min）@xttwo((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**血糖（180min）@xtthree((75g@1^50g@2^100g@3\"\r\n");
      out.write("\r\n");
      out.write("+\"||胰岛功能-胰岛素@lab_pancreat_yidaosu{{\"\r\n");
      out.write("    +\"胰岛素（空腹）@ydempty((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**胰岛素（30min）@ydhalf((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**胰岛素（60min）@ydone((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**胰岛素（120min）@ydtwo((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**胰岛素（180min）@ydthree((75g@1^50g@2^100g@3\"\r\n");
      out.write("\r\n");
      out.write("+\"||胰岛功能-C肽@lab_pancreat_ctai{{\"\r\n");
      out.write("    +\"C肽（空腹）@ctempty((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**C肽（30min）@cthalf((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**C肽（60min）@ctone((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**C肽（120min）@cttwo((75g@1^50g@2^100g@3\"\r\n");
      out.write("    +\"**C肽（180min）@ctthree((75g@1^50g@2^100g@3\"\r\n");
      out.write("\r\n");
      out.write("+\"||血常规@lab_blood{{\"\r\n");
      out.write("    +\"红细胞计数(RBC)@rbc((范围@searchType1\"\r\n");
      out.write("    +\"**血红蛋白(HGB)@hgb((范围@searchType1\"\r\n");
      out.write("    +\"**白细胞计数(WBC)@wbc((范围@searchType1\"\r\n");
      out.write("    +\"**中性杆状核粒细胞@ganzhuang((范围@searchType1\"\r\n");
      out.write("    +\"**中性分叶核粒细胞@fenye((范围@searchType1\"\r\n");
      out.write("    +\"**嗜酸性粒细胞@shisuan((范围@searchType1\"\r\n");
      out.write("    +\"**嗜碱性粒细胞@shijian((范围@searchType1\"\r\n");
      out.write("    +\"**淋巴细胞@linba((范围@searchType1\"\r\n");
      out.write("    +\"**单核细胞@danhe((范围@searchType1\"\r\n");
      out.write("    +\"**血小板计数(PLT)@plt((范围@searchType1\";\r\n");
      out.write("\r\n");
      out.write("function addCondition(){\r\n");
      out.write("\tcc++;\r\n");
      out.write("\tvar fm=$('advancedSearchForm');\r\n");
      out.write("\tvar newcdt=document.createElement('div');\r\n");
      out.write("\t/*\r\n");
      out.write("\tvar childs=GetSelectHTML(\"advancedSearchForm\",\"S_1_\"+cc+\"|S_2_\"+cc+\"|S_3_\"+cc,\"\",\"请选择表格@|请选择字段@|请选择条件@\",AllStr,3,cc-1);\r\n");
      out.write("\tchilds+=' 从<input type=\"text\" name=\"fromValue['+(cc-1)+']\" id=\"fromValue'+cc+'\"+ size=\"6\" /> ';\r\n");
      out.write("\tchilds+=' 到<input type=\"text\" name=\"toValue['+(cc-1)+']\" id=\"toValue'+cc+'\" size=\"6\" />';\t\r\n");
      out.write("\tnewcdt.innerHTML=childs;\r\n");
      out.write("\tfm.appendChild(newcdt);\r\n");
      out.write("\t*/\r\n");
      out.write("\t///////////////////////////\r\n");
      out.write("\tvar _FormName=\"advancedSearchForm\";\r\n");
      out.write("\tvar _SName=\"S_1_\"+cc+\"|S_2_\"+cc+\"|S_3_\"+cc;\r\n");
      out.write("\tvar _SValue=\"\";\r\n");
      out.write("\tvar _Ds=\"请选择表格@|请选择字段@|请选择条件@\";\r\n");
      out.write("\tvar _AllOptions=SelectData;\r\n");
      out.write("\tvar ShowType=3;\r\n");
      out.write("\tvar index=cc-1;\r\n");
      out.write("\t\r\n");
      out.write("\tvar _AllOptionStr=_AllOptions.substring(0,_AllOptions.length);\r\n");
      out.write("\tvar result=\"\";\r\n");
      out.write("\t\r\n");
      out.write("    if (_FormName==\"\")\r\n");
      out.write("        _FormName = \"all\";\r\n");
      out.write("    var _DsArr = _Ds.split(\"|\")\r\n");
      out.write("    var _Ds1,_Ds2,_Ds3;\r\n");
      out.write("    var _Ds1 = _DsArr[0];\r\n");
      out.write("    var _Ds2 = (_DsArr.length>1)?_DsArr[1]:_DsArr[0];\r\n");
      out.write("    var _Ds3 = (_DsArr.length>2)?_DsArr[2]:_DsArr[0];\r\n");
      out.write("\r\n");
      out.write("    var _SNameArr = _SName.split(\"|\");\r\n");
      out.write("    var _SName1,_SName2,_SName3;\r\n");
      out.write("    var _SName1 = _SNameArr[0];\r\n");
      out.write("    var _SName2 = (_SNameArr.length>1)?_SNameArr[1]:_SNameArr[0];\r\n");
      out.write("    var _SName3 = (_SNameArr.length>2)?_SNameArr[2]:_SNameArr[0];\r\n");
      out.write("\r\n");
      out.write("    var _SValueArr = _SValue.split(\"|\");\r\n");
      out.write("    var _SValue1,_SValue2,_SValue3;\r\n");
      out.write("    var _SValue1 = _SValueArr[0];\r\n");
      out.write("    var _SValue2 = (_SValueArr.length>1)?_SValueArr[1]:_SValueArr[0];\r\n");
      out.write("    var _SValue3 = (_SValueArr.length>2)?_SValueArr[2]:_SValueArr[0];\r\n");
      out.write("\r\n");
      out.write("    if (ShowType==3){\r\n");
      out.write("        _AllOptionStr = _AllOptionStr.replace(/\\(\\(/ig,\"\\(\\(\"+_Ds3+\"\\^\");\r\n");
      out.write("        _AllOptionStr = _AllOptionStr.replace(/\\{\\{/ig,\"\\{\\{\"+_Ds2+\"\\(\\(\"+_Ds3+\"\\*\\*\");\r\n");
      out.write("    }\r\n");
      out.write("    else if(ShowType==2){\r\n");
      out.write("        _AllOptionStr = _AllOptionStr.replace(/\\{\\{/ig,\"\\{\\{\"+_Ds2+\"\\(\\(\"+_Ds3+\"\\*\\*\");\r\n");
      out.write("    }\r\n");
      out.write("    else if(ShowType==1){\r\n");
      out.write("        _AllOptionStr = _AllOptionStr.replace(/\\(\\(/ig,\"\\(\\(\"+_Ds3+\"\\^\");\r\n");
      out.write("    }\r\n");
      out.write("    var AllStr = _Ds1 + \"{{\"+ _Ds2 + \"((\"+ _Ds3 +\"||\"+_AllOptionStr;\r\n");
      out.write("    var _AR0 = AllStr.split(\"||\");\r\n");
      out.write("    result+=\"<select name=\\\"\" + _SName1 + \"\\\" id=\\\"\" + _SName1 + \"\\\" size=\\\"1\\\" onChange=\\\"_SName1redirect(this.options.selectedIndex,\"+(cc-1)+\")\\\">\\n\";\r\n");
      out.write("    for (var i1 = 0;i1 < _AR0.length;i1++)\r\n");
      out.write("    {\r\n");
      out.write("        var Area1Str = _AR0[i1];\r\n");
      out.write("        var _AR10 = Area1Str.split(\"{{\");\r\n");
      out.write("        var _AR11 = _AR10[0].split(\"@\");\r\n");
      out.write("        var Tstr1 = _AR11[0];\r\n");
      out.write("        var Vstr1 = (_AR11.length==2)?_AR11[1]:_AR11[0];\r\n");
      out.write("        result+=\"<option value=\\\"\"+Vstr1+\"\\\">\"+Tstr1+\"<\\/option>\";\r\n");
      out.write("    }\r\n");
      out.write("    result+=\"<\\/select>\\n\";\r\n");
      out.write("\r\n");
      out.write("    result+=\"<select name=\\\"\" + _SName2 + \"\\\" id=\\\"\" + _SName2 + \"\\\" size=\\\"1\\\" onChange=\\\"_SName1redirect1(this.options.selectedIndex,\"+(cc-1)+\")\\\">\\n\";\r\n");
      out.write("    var _AR111 = _Ds2.split(\"@\");\r\n");
      out.write("    var Tstr11 = _AR111[0];\r\n");
      out.write("    var Vstr11 = (_AR111.length==2)?_AR111[1]:_AR111[0];\r\n");
      out.write("    result+=\"<option value=\\\"\"+Vstr11+\"\\\">\"+Tstr11+\"<\\/option>\\n\";\r\n");
      out.write("    result+=\"<\\/select>\\n\";\r\n");
      out.write("\r\n");
      out.write("    result+=\"<select name=\\\"\" + _SName3 + \"\\\" id=\\\"\" + _SName3 + \"\\\" size=\\\"1\\\">\\n\";\r\n");
      out.write("    var _AR222 = _Ds3.split(\"@\");\r\n");
      out.write("    var Tstr22 = _AR222[0];\r\n");
      out.write("    var Vstr22 = (_AR222.length==2)?_AR222[1]:_AR222[0];\r\n");
      out.write("    result+=\"<option value=\\\"\"+Vstr22+\"\\\">\"+Tstr22+\"<\\/option>\\n\";\r\n");
      out.write("    result+=\"<\\/select>\\n\";\r\n");
      out.write("\t////////////////\r\n");
      out.write("\tvar childs=result;\r\n");
      out.write("\tchilds+=' 从<input type=\"text\" name=\"fromValue['+(cc-1)+']\" id=\"fromValue'+cc+'\"+ size=\"6\" /> ';\r\n");
      out.write("\tchilds+=' 到<input type=\"text\" name=\"toValue['+(cc-1)+']\" id=\"toValue'+cc+'\" size=\"6\" />';\t\r\n");
      out.write("\tnewcdt.innerHTML=childs;\r\n");
      out.write("\tfm.appendChild(newcdt);\t\r\n");
      out.write("\t/////////////////\r\n");
      out.write("\t_SName1temp.push(document.getElementsByName(_SName2)[0]);\r\n");
      out.write("\t_SName1Group2s.push(document.getElementsByName(_SName2)[0].options.length);\r\n");
      out.write("\t_SName1Group2.push(new Array(_SName1groups));\r\n");
      out.write("\tfor (i=0; i<_SName1groups; i++){\r\n");
      out.write("\t\t_SName1Group2[index][i]=new Array(_SName1group[i].length);\r\n");
      out.write("\t\tfor (j=0; j<_SName1group[i].length; j++){\r\n");
      out.write("\t\t\t_SName1Group2[index][i][j]=new Array();\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\tfor (var i1 = 0;i1 < _SName1_AR0.length;i1++){\r\n");
      out.write("\t\tvar Area1Str = _SName1_AR0[i1];\r\n");
      out.write("\t\tvar _AR10 = Area1Str.split(\"{{\");\r\n");
      out.write("\t\tvar _AR12 = _AR10[1].split(\"**\");\r\n");
      out.write("\t\tfor (var i2 = 0;i2 < _AR12.length;i2++){\r\n");
      out.write("\t\t\tvar Area2Str = _AR12[i2];\r\n");
      out.write("\t\t\tvar _AR20 = Area2Str.split(\"((\");\r\n");
      out.write("\t\t\t_AR212 = _AR20[1].split(\"^\");\r\n");
      out.write("\t\t\tfor (var i3 = 0;i3 < _AR212.length;i3++){\r\n");
      out.write("\t\t\t\tArea3Str = _AR212[i3];\r\n");
      out.write("\t\t\t\t_AR3 = Area3Str.split(\"@\");\r\n");
      out.write("\t\t\t\tTstr3 = _AR3[0];\r\n");
      out.write("\t\t\t\tVstr3 = (_AR3.length==2)?_AR3[1]:_AR3[0];\r\n");
      out.write("\t\t\t\t_SName1Group2[index][i1][i2][i3]=new Option(Tstr3,Vstr3);\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t_SName1temp1.push(document.getElementsByName(_SName3)[0]);\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function switchSearchMode(){\r\n");
      out.write("\tvar btn=$('switchSearchBtn');\r\n");
      out.write("\tif(btn.value=='高级检索'){\r\n");
      out.write("\t\t$('searchForm').style.display='none';\r\n");
      out.write("\t\t$('advancedSearchForm').style.display='inline';\r\n");
      out.write("\t\t$('addconditionbtn').style.display='inline';\r\n");
      out.write("\t\tbtn.value='一般检索';\r\n");
      out.write("\t}else{\r\n");
      out.write("\t\t$('searchForm').style.display='inline';\r\n");
      out.write("\t\t$('advancedSearchForm').style.display='none';\r\n");
      out.write("\t\t$('addconditionbtn').style.display='none';\r\n");
      out.write("\t\tbtn.value='高级检索';\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function searchIndex(){\r\n");
      out.write("\tvar ajax = new postAjax();\r\n");
      out.write("\tvar s1 = $('S_1');\r\n");
      out.write("\tvar s2 = $('S_2');\r\n");
      out.write("\tvar s3 = $('S_3');\r\n");
      out.write("\tvar v1 = s1.options[s1.selectedIndex].value;\r\n");
      out.write("\tvar v2 = s2.options[s2.selectedIndex].value;\r\n");
      out.write("\tvar v3 = s3.options[s3.selectedIndex].value;\r\n");
      out.write("\tvar fv = $('fromValue').value;\r\n");
      out.write("\tvar tv = $('toValue').value;\r\n");
      out.write("\t\r\n");
      out.write("\tif(v1!=null && v1!=\"\" && v2!=null && v2!=\"\" && v3!=null && v3!=\"\"){\r\n");
      out.write("\t\tif(v3==\"searchType1\" || v1.indexOf(\"lab_pancreat\")!=-1){\r\n");
      out.write("\t\t\tif(fv==null || fv==\"\" || tv==null || tv==\"\"){\r\n");
      out.write("\t\t\t\talert(\"请输入范围\");\r\n");
      out.write("\t\t\t\treturn;\r\n");
      out.write("\t\t\t}\t \r\n");
      out.write("\t\t\tif((Validator.Integer.test(fv) || Validator.ZDouble.test(fv)) && \r\n");
      out.write("\t\t\t\t\t(Validator.Integer.test(tv) || Validator.ZDouble.test(tv)) ){\r\n");
      out.write("\t\t\t\tif(tv < fv){\r\n");
      out.write("\t\t\t\t\talert(\"最小值必须小于或等于最大值\");\r\n");
      out.write("\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t}\t\t\r\n");
      out.write("\t\t\t}else{\r\n");
      out.write("\t\t\t\talert(\"检索范围输入有误，请输入数字\");\r\n");
      out.write("\t\t\t\treturn;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}else if(v3==\"searchType2\"){\r\n");
      out.write("\t\t\tif(fv==null || fv==\"\"){\r\n");
      out.write("\t\t\t\talert(\"请输入搜索值\");\r\n");
      out.write("\t\t\t\treturn;\r\n");
      out.write("\t\t\t}else{\r\n");
      out.write("\t\t\t\tif((Validator.Integer.test(fv) || Validator.ZDouble.test(fv))){\r\n");
      out.write("\t\t\t\t\talert(\"检索范围输入有误，请输入数字\");\r\n");
      out.write("\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}               \t\t\r\n");
      out.write("\t\t//alert(v1+\",\"+v2+\",\"+v3+\",\"+ fv+\",\"+tv);\r\n");
      out.write("\t\turl = \"search/search.action?method=search&\";\r\n");
      out.write("\t\tvalue = \"select1=\" + v1 + \"&select2=\"+ v2 +\"&select3=\"+v3+\"&fromValue=\"+fv+\"&toValue=\"+tv;\r\n");
      out.write("\t\tajax.connect(url,value,searchCallback);\r\n");
      out.write("\t}else{\r\n");
      out.write("\t\talert(\"请选择检索内容\");\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function advancedSearchIndex(){\r\n");
      out.write("\tvar ajax = new postAjax();\r\n");
      out.write("\t\r\n");
      out.write("\tvar s1 = new Array();\r\n");
      out.write("\tvar s2 = new Array();\r\n");
      out.write("\tvar s3 = new Array();\r\n");
      out.write("\tvar v1 = new Array();\r\n");
      out.write("\tvar v2 = new Array();\r\n");
      out.write("\tvar v3 = new Array();\r\n");
      out.write("\tvar fv = new Array();\r\n");
      out.write("\tvar tv = new Array();\r\n");
      out.write("\t\r\n");
      out.write("\tfor(var i=0;i<cc;i++){\r\n");
      out.write("\t\ts1.push($('S_1_'+(i+1)));\r\n");
      out.write("\t\ts2.push($('S_2_'+(i+1)));\r\n");
      out.write("\t\ts3.push($('S_3_'+(i+1)));\r\n");
      out.write("\t\tv1.push(s1[i].options[s1[i].selectedIndex].value);\r\n");
      out.write("\t\tv2.push(s2[i].options[s2[i].selectedIndex].value);\r\n");
      out.write("\t\tv3.push(s3[i].options[s3[i].selectedIndex].value);\r\n");
      out.write("\t\tfv.push($('fromValue'+(i+1)).value);\r\n");
      out.write("\t\ttv.push($('toValue'+(i+1)).value);\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(v1[i]!=null && v1[i]!=\"\" && v2[i]!=null && v2[i]!=\"\" && v3[i]!=null && v3[i]!=\"\"){\r\n");
      out.write("\t\t\tif(v3[i]==\"searchType1\" || v1[i].indexOf(\"lab_pancreat\")!=-1){\r\n");
      out.write("\t\t\t\tif(fv[i]==null || fv[i]==\"\" || tv[i]==null || tv[i]==\"\"){\r\n");
      out.write("\t\t\t\t\talert(\"请输入第\"+(i+1)+\"个条件的范围\");\r\n");
      out.write("\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t}\t \r\n");
      out.write("\t\t\t\tif((Validator.Integer.test(fv[i]) || Validator.ZDouble.test(fv[i])) && \r\n");
      out.write("\t\t\t\t\t\t(Validator.Integer.test(tv[i]) || Validator.ZDouble.test(tv[i])) ){\r\n");
      out.write("\t\t\t\t\tif(tv[i] < fv[i]){\r\n");
      out.write("\t\t\t\t\t\talert(\"第\"+(i+1)+\"个条件的最小值必须小于或等于最大值\");\r\n");
      out.write("\t\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t\t}\t\t\r\n");
      out.write("\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\talert(\"第\"+(i+1)+\"个条件的检索范围输入有误，请输入数字\");\r\n");
      out.write("\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}else if(v3[i]==\"searchType2\"){\r\n");
      out.write("\t\t\t\tif(fv[i]==null || fv[i]==\"\"){\r\n");
      out.write("\t\t\t\t\talert(\"请输入第\"+(i+1)+\"个条件的搜索值\");\r\n");
      out.write("\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\tif((Validator.Integer.test(fv[i]) || Validator.ZDouble.test(fv[i]))){\r\n");
      out.write("\t\t\t\t\t\talert(\"第\"+(i+1)+\"个条件的检索范围输入有误，请输入数字\");\r\n");
      out.write("\t\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}else{\r\n");
      out.write("\t\t\talert(\"请选择第\"+(i+1)+\"个条件的检索内容\");\r\n");
      out.write("\t\t\treturn;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}              \t\t\r\n");
      out.write("\t\r\n");
      out.write("\t//alert(v1+\",\"+v2+\",\"+v3+\",\"+ fv+\",\"+tv);\r\n");
      out.write("\turl = \"advancedSearch/advancedSearch.action?method=search&\";\r\n");
      out.write("\t\r\n");
      out.write("\tvar value=\"numOfConditions=\"+cc;\r\n");
      out.write("\tvar select1=\"&select1=\"+v1[0];\r\n");
      out.write("\tvar select2=\"&select2=\"+v2[0];\r\n");
      out.write("\tvar select3=\"&select3=\"+v3[0];\r\n");
      out.write("\tvar fromValue=\"&fromValue=\"+fv[0];\r\n");
      out.write("\tvar toValue=\"&toValue=\"+tv[0];\r\n");
      out.write("\t\r\n");
      out.write("\tfor(var j=1;j<cc;j++){\r\n");
      out.write("\t\tselect1+=\"|\"+v1[j];\r\n");
      out.write("\t\tselect2+=\"|\"+v2[j];\r\n");
      out.write("\t\tselect3+=\"|\"+v3[j];\r\n");
      out.write("\t\tfromValue+=\"|\"+fv[j];\r\n");
      out.write("\t\ttoValue+=\"|\"+tv[j];\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tvalue += select1 + select2 +select3+fromValue+toValue;\r\n");
      out.write("\tajax.connect(url,value,searchCallback);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function searchCallback(xmlHttp){\r\n");
      out.write("\tvar re = xmlHttp.responseText;\r\n");
      out.write("\tif(re==\"0\"){\r\n");
      out.write("\t\tshowError($('statusBar'), \"暂无相应记录\");\r\n");
      out.write("\t\tvar all = $('patientList').parentNode.outerHTML;\r\n");
      out.write("\t\tvar i = all.indexOf(\"<tbody\");\r\n");
      out.write("\t\t$('patientList').parentNode.outerHTML = all.substring(0,i-1)+ \"<tbody id=\\\"patientList\\\"></tbody>\";\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}else{\r\n");
      out.write("\t\tvar list = eval(\"(\" +re+ \")\");\r\n");
      out.write("\t\tvar str = \"\";\r\n");
      out.write("\t\tfor(var i=0;i<list.length;i++){\r\n");
      out.write("\t\t\tstr += \"<tr>\";\r\n");
      out.write("\t\t\tstr += \"<td align=\\\"left\\\" class=\\\"form-td\\\">\";\r\n");
      out.write("\t\t\tstr += list[i].patientid + \"</td>\";\r\n");
      out.write("\t\t\tstr += \"<td align=\\\"left\\\" class=\\\"form-td\\\">\";\r\n");
      out.write("\t\t\tstr += list[i].patientname + \"</td>\";\r\n");
      out.write("\t\t\tstr += \"<td align=\\\"left\\\" class=\\\"form-td\\\">\";\r\n");
      out.write("\t\t\tstr += list[i].address + \"</td>\";\r\n");
      out.write("\t\t\tstr += \"<td align=\\\"left\\\" class=\\\"form-td\\\">\";\r\n");
      out.write("\t\t\tstr += list[i].telephone + \"</td>\";\r\n");
      out.write("\t\t\t//str += \"<td align=\\\"left\\\" class=\\\"form-td\\\">\";\r\n");
      out.write("\t\t\t//str +=        \"</td>\";\r\n");
      out.write("\t\t\tstr += \"<td align=\\\"left\\\" class=\\\"form-td\\\">\";\r\n");
      out.write("\t\t\tstr += list[i].followtime + \"</td>\";\r\n");
      out.write("\t\t\tstr += \"<td align=\\\"left\\\" class=\\\"form-td\\\">\";\r\n");
      out.write("\t\t\tvar s = list[i].patientstatus;\r\n");
      out.write("\t\t\tif(s==\"0\"){\r\n");
      out.write("\t\t\t\tstr += \"<font color=\\\"#8F4586\\\">进行中</font></td>\";\r\n");
      out.write("\t\t\t}else if(s==\"1\"){\r\n");
      out.write("\t\t\t\tstr += \"<font color=\\\"#2828FF\\\">失访</font></td>\";\r\n");
      out.write("\t\t\t}else if(s==\"2\"){\r\n");
      out.write("\t\t\t\tstr += \"<font color=\\\"#FF8000\\\">死亡</font></td>\";\r\n");
      out.write("\t\t\t}else if(s==\"3\"){\r\n");
      out.write("\t\t\t\tstr += \"<font color=\\\"red\\\">完成</font></td>\";\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t\tstr += \"<td align=\\\"left\\\" class=\\\"form-td\\\"><a href=\\\"javascript:void(0);\\\" onclick=\\\"doEdit( \";\r\n");
      out.write("\t\t\tstr += list[i].patientid + \",1); return false\\\">基线信息</a>&nbsp;&nbsp;|&nbsp;&nbsp;\";\r\n");
      out.write("\t\t\tstr += \"<a href=\\\"javascript:void(0);\\\" onclick=\\\"doEdit(\";\r\n");
      out.write("\t\t\tstr += list[i].patientid +\",2); return false\\\">随访信息</a></td>\"   \t\r\n");
      out.write("\t\t\tstr +=\"</tr>\";\r\n");
      out.write("\t\t}\r\n");
      out.write("\t \tvar all = $('patientList').parentNode.outerHTML;\r\n");
      out.write("\t\tvar i = all.indexOf(\"<tbody\");\r\n");
      out.write("\t\t$('patientList').parentNode.outerHTML = all.substring(0,i-1)+ \"<tbody id=\\\"patientList\\\">\" + str + \"</tbody>\";\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function doEdit(id, flag){\r\n");
      out.write("\tlocation.href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/patient/patient.action?method=editPatient&patientid=\"+id+\"&flag=\"+flag;\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<form id=\"listForm\" name=\"listForm\" method=\"post\">\r\n");
      out.write("<table id=\"searchListtb\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" class=\"formTable\" width=\"100%\" >\r\n");
      out.write("      <thead>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td width=\"50\" align=\"center\" class=\"form-th\">编号</td>\r\n");
      out.write("          <td width=\"50\"  align=\"center\" class=\"form-th\">姓名</td>\r\n");
      out.write("\t\t  <td width=\"170\" align=\"center\" class=\"form-th\">家庭住址</td>\r\n");
      out.write("          <td width=\"80\"  align=\"center\" class=\"form-th\">联系电话</td>\r\n");
      out.write("          <!-- <td width=\"60\"  align=\"center\" class=\"form-th\">临床分组情况</td> -->\r\n");
      out.write("          <td width=\"75\"  align=\"center\" class=\"form-sort-th\" onclick=\"tbSort('followTime');\">随访时间\r\n");
      out.write("          \t");
      if (_jspx_meth_s_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("          </td>\r\n");
      out.write("          <td width=\"40\"  align=\"center\" class=\"form-th\">状态</td>    \r\n");
      out.write("          <td width=\"85\"  align=\"center\" class=\"form-th\">操作</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </thead>\r\n");
      out.write("      <tbody id=\"patientList\"></tbody>\r\n");
      out.write("</table>\r\n");
      out.write("</form>\r\n");
      out.write("<div style=\"display:block; height:10px;\"></div>\r\n");
      out.write("</div>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_s_005fproperty_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:property
    org.apache.struts2.views.jsp.PropertyTag _jspx_th_s_005fproperty_005f0 = (org.apache.struts2.views.jsp.PropertyTag) _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.PropertyTag.class);
    _jspx_th_s_005fproperty_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fproperty_005f0.setParent(null);
    // /commons/showmessage.jsp(3,14) name = value type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_s_005fproperty_005f0.setValue("opertMsg.id");
    int _jspx_eval_s_005fproperty_005f0 = _jspx_th_s_005fproperty_005f0.doStartTag();
    if (_jspx_th_s_005fproperty_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
    return false;
  }

  private boolean _jspx_meth_s_005fproperty_005f1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:property
    org.apache.struts2.views.jsp.PropertyTag _jspx_th_s_005fproperty_005f1 = (org.apache.struts2.views.jsp.PropertyTag) _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.PropertyTag.class);
    _jspx_th_s_005fproperty_005f1.setPageContext(_jspx_page_context);
    _jspx_th_s_005fproperty_005f1.setParent(null);
    // /commons/showmessage.jsp(4,16) name = value type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_s_005fproperty_005f1.setValue("opertMsg.msg");
    int _jspx_eval_s_005fproperty_005f1 = _jspx_th_s_005fproperty_005f1.doStartTag();
    if (_jspx_th_s_005fproperty_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fproperty_0026_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f1);
    return false;
  }

  private boolean _jspx_meth_s_005fif_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:if
    org.apache.struts2.views.jsp.IfTag _jspx_th_s_005fif_005f0 = (org.apache.struts2.views.jsp.IfTag) _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.get(org.apache.struts2.views.jsp.IfTag.class);
    _jspx_th_s_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fif_005f0.setParent(null);
    // /search/searchResult.jsp(485,11) name = test type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_s_005fif_005f0.setTest("orderCol=='followTime'");
    int _jspx_eval_s_005fif_005f0 = _jspx_th_s_005fif_005f0.doStartTag();
    if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_005fif_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_005fif_005f0.doInitBody();
      }
      do {
        out.write("\r\n");
        out.write("          \t\t");
        if (_jspx_meth_s_005fif_005f1(_jspx_th_s_005fif_005f0, _jspx_page_context))
          return true;
        out.write("\r\n");
        out.write("          \t\t");
        if (_jspx_meth_s_005felse_005f0(_jspx_th_s_005fif_005f0, _jspx_page_context))
          return true;
        out.write("\r\n");
        out.write("          \t");
        int evalDoAfterBody = _jspx_th_s_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_s_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.reuse(_jspx_th_s_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.reuse(_jspx_th_s_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_s_005fif_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:if
    org.apache.struts2.views.jsp.IfTag _jspx_th_s_005fif_005f1 = (org.apache.struts2.views.jsp.IfTag) _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.get(org.apache.struts2.views.jsp.IfTag.class);
    _jspx_th_s_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_s_005fif_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_s_005fif_005f0);
    // /search/searchResult.jsp(486,12) name = test type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_s_005fif_005f1.setTest("ascOrDesc=='DESC'");
    int _jspx_eval_s_005fif_005f1 = _jspx_th_s_005fif_005f1.doStartTag();
    if (_jspx_eval_s_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_005fif_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_005fif_005f1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_005fif_005f1.doInitBody();
      }
      do {
        out.write("<img src=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("/images/sort_desc.png\" width=\"13\" height=\"13\" border=\"0\" />");
        int evalDoAfterBody = _jspx_th_s_005fif_005f1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_005fif_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_s_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.reuse(_jspx_th_s_005fif_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fif_0026_005ftest.reuse(_jspx_th_s_005fif_005f1);
    return false;
  }

  private boolean _jspx_meth_s_005felse_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:else
    org.apache.struts2.views.jsp.ElseTag _jspx_th_s_005felse_005f0 = (org.apache.struts2.views.jsp.ElseTag) _005fjspx_005ftagPool_005fs_005felse.get(org.apache.struts2.views.jsp.ElseTag.class);
    _jspx_th_s_005felse_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005felse_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_s_005fif_005f0);
    int _jspx_eval_s_005felse_005f0 = _jspx_th_s_005felse_005f0.doStartTag();
    if (_jspx_eval_s_005felse_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_005felse_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_005felse_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_005felse_005f0.doInitBody();
      }
      do {
        out.write("<img src=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${contextPath }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("/images/sort_asc.png\" width=\"13\" height=\"13\" border=\"0\" />");
        int evalDoAfterBody = _jspx_th_s_005felse_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_005felse_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_s_005felse_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005felse.reuse(_jspx_th_s_005felse_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005felse.reuse(_jspx_th_s_005felse_005f0);
    return false;
  }
}
